

package com.maoshi.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maoshi.shop.bean.enums.ShopWalletAmountType;
import com.maoshi.shop.bean.enums.ShopWalletChangeReason;
import com.maoshi.shop.bean.model.ShopWallet;
import com.maoshi.shop.bean.model.ShopWalletLog;

/**
 * 商家钱包记录
 *
 * @author Dwl
 * @date 2019-09-19 14:02:57
 */
public interface ShopWalletLogService extends IService<ShopWalletLog> {

    /**
     * 插入店铺钱包日志
     * @param oldShopWallet 旧的钱包记录
     * @param newShopWallet 新的钱包记录
     * @param shopWalletChangeReason 改变原因
     * @param orderNumber 订单号
     * @return
     */
    void saveShopWalletLog(ShopWallet oldShopWallet, ShopWallet newShopWallet , ShopWalletChangeReason shopWalletChangeReason, String orderNumber);
}
